all: main.cpp Point.h Element.h Mesh.h Possion.h
	g++ -o main main.cpp -std=c++11
test:
	make
	./main Inputfile/test1
	matlab -nodesktop -nosplash -r result
	./main Inputfile/test2
	matlab -nodesktop -nosplash -r result
	./main Inputfile/test3
	matlab -nodesktop -nosplash -r result
testpoint:
	g++ -o testpoint TestPoint.cpp -std=c++11
testelement:
	g++ -o testelement TestElement.cpp -std=c++11
testmesh:
	g++ -o testmesh TestMesh.cpp -std=c++11
testpossion:
	g++ -o testpossion TestPossion.cpp -std=c++11
easymesh:
	gcc -o EasyMesh bin/easymesh.c -w -lm
mesh:
	./EasyMesh data/D1
	./EasyMesh data/D2
	./EasyMesh data/D3
report:
	xelatex report.tex
	xelatex report.tex
cleanmesh:
	rm data/*.s
	rm data/*.n
	rm data/*.e
	rm EasyMesh
cleanmatlab:
	rm *.m
clean:
	rm main
cleanr:
	rm *.log
	rm *.aux
	rm *.pdf
